import React from 'react';
import type {PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types';
import type {SettingsNavigatorParamList} from '@libs/Navigation/types';
import ROUTES from '@src/ROUTES';
import type SCREENS from '@src/SCREENS';
import BaseDomainVerifiedPage from './BaseDomainVerifiedPage';

type SamlDomainVerifiedPageProps = PlatformStackScreenProps<SettingsNavigatorParamList, typeof SCREENS.DOMAIN.VERIFIED>;

function SamlDomainVerifiedPage({route}: SamlDomainVerifiedPageProps) {
    const accountID = route.params.accountID;

    return (
        <BaseDomainVerifiedPage
            accountID={accountID}
            redirectTo={ROUTES.DOMAIN_VERIFY.getRoute(accountID)}
        />
    );
}

SamlDomainVerifiedPage.displayName = 'SamlDomainVerifiedPage';
export default SamlDomainVerifiedPage;
